//
//  UINavigationController+FindViewConroller.m
//  DaBaiSite
//
//  Created by Mac-Mini-KingVision on 15/12/25.
//  Copyright © 2015年 admin. All rights reserved.
//

#import "UINavigationController+FindViewConroller.h"

@implementation UINavigationController (FindViewConroller)

-(UIViewController *)viewControllerWithClass:(Class)viewControllerClass
{
    for (UIViewController *viewController in self.viewControllers) {
        if ([viewController isKindOfClass:viewControllerClass]) {
            return viewController;
        }
    }
    return nil;
}

@end
